def get_in(s,lst):
    for item in lst:
        if item == s:
            return True
    return False
lst=['hello','world','python']
s= input('请输入您要判断的字符串：')
result = get_in(s,lst)
print('存在' if result else '不存在')

